<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: NVIC Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">NVIC Functions<div class="ingroups"><a class="el" href="group___c_m_s_i_s___core___function_interface.html">Functions and Instructions Reference</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Functions that manage interrupts and exceptions via the NVIC.  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ga0e798d5aec68cdd8263db86a76df788f"><td class="memItemLeft" align="right" valign="top"><a id="ga0e798d5aec68cdd8263db86a76df788f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_SetPriorityGrouping</b>&#160;&#160;&#160;__NVIC_SetPriorityGrouping</td></tr>
<tr class="separator:ga0e798d5aec68cdd8263db86a76df788f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4eeb9214f2264fc23c34ad5de2d3fa11"><td class="memItemLeft" align="right" valign="top"><a id="ga4eeb9214f2264fc23c34ad5de2d3fa11"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_GetPriorityGrouping</b>&#160;&#160;&#160;__NVIC_GetPriorityGrouping</td></tr>
<tr class="separator:ga4eeb9214f2264fc23c34ad5de2d3fa11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga57b3064413dbc7459d9646020fdd8bef"><td class="memItemLeft" align="right" valign="top"><a id="ga57b3064413dbc7459d9646020fdd8bef"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_EnableIRQ</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga71227e1376cde11eda03fcb62f1b33ea">__NVIC_EnableIRQ</a></td></tr>
<tr class="separator:ga57b3064413dbc7459d9646020fdd8bef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga857de13232ec65dd15087eaa15bc4a69"><td class="memItemLeft" align="right" valign="top"><a id="ga857de13232ec65dd15087eaa15bc4a69"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_GetEnableIRQ</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gaaeb5e7cc0eaad4e2817272e7bf742083">__NVIC_GetEnableIRQ</a></td></tr>
<tr class="separator:ga857de13232ec65dd15087eaa15bc4a69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga73b4e251f59cab4e9a5e234aac02ae57"><td class="memItemLeft" align="right" valign="top"><a id="ga73b4e251f59cab4e9a5e234aac02ae57"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_DisableIRQ</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gae016e4c1986312044ee768806537d52f">__NVIC_DisableIRQ</a></td></tr>
<tr class="separator:ga73b4e251f59cab4e9a5e234aac02ae57"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac608957a239466e9e0cbc30aa64feb3b"><td class="memItemLeft" align="right" valign="top"><a id="gac608957a239466e9e0cbc30aa64feb3b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_GetPendingIRQ</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga5a92ca5fa801ad7adb92be7257ab9694">__NVIC_GetPendingIRQ</a></td></tr>
<tr class="separator:gac608957a239466e9e0cbc30aa64feb3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2b47e2e52cf5c48a5c3348636434b3ac"><td class="memItemLeft" align="right" valign="top"><a id="ga2b47e2e52cf5c48a5c3348636434b3ac"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_SetPendingIRQ</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gaabefdd4b790b9a7308929938c0c1e1ad">__NVIC_SetPendingIRQ</a></td></tr>
<tr class="separator:ga2b47e2e52cf5c48a5c3348636434b3ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga590cf113000a079b1f0ea3dcd5b5316c"><td class="memItemLeft" align="right" valign="top"><a id="ga590cf113000a079b1f0ea3dcd5b5316c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_ClearPendingIRQ</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga562a86dbdf14827d0fee8fdafb04d191">__NVIC_ClearPendingIRQ</a></td></tr>
<tr class="separator:ga590cf113000a079b1f0ea3dcd5b5316c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae0e9d0e2f7b6133828c71b57d4941c35"><td class="memItemLeft" align="right" valign="top"><a id="gae0e9d0e2f7b6133828c71b57d4941c35"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_SetPriority</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga505338e23563a9c074910fb14e7d45fd">__NVIC_SetPriority</a></td></tr>
<tr class="separator:gae0e9d0e2f7b6133828c71b57d4941c35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf59b9d0a791d2157abb319753953eceb"><td class="memItemLeft" align="right" valign="top"><a id="gaf59b9d0a791d2157abb319753953eceb"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_GetPriority</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gaeb9dc99c8e7700668813144261b0bc73">__NVIC_GetPriority</a></td></tr>
<tr class="separator:gaf59b9d0a791d2157abb319753953eceb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6aa0367d3642575610476bf0366f0c48"><td class="memItemLeft" align="right" valign="top"><a id="ga6aa0367d3642575610476bf0366f0c48"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_SystemReset</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga0d9aa2d30fa54b41eb780c16e35b676c">__NVIC_SystemReset</a></td></tr>
<tr class="separator:ga6aa0367d3642575610476bf0366f0c48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga804af63bb4c4c317387897431814775d"><td class="memItemLeft" align="right" valign="top"><a id="ga804af63bb4c4c317387897431814775d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_SetVector</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga0df355460bc1783d58f9d72ee4884208">__NVIC_SetVector</a></td></tr>
<tr class="separator:ga804af63bb4c4c317387897431814775d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga955eb1c33a3dcc62af11a8385e8c0fc8"><td class="memItemLeft" align="right" valign="top"><a id="ga955eb1c33a3dcc62af11a8385e8c0fc8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_GetVector</b>&#160;&#160;&#160;<a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga44b665d2afb708121d9b10c76ff00ee5">__NVIC_GetVector</a></td></tr>
<tr class="separator:ga955eb1c33a3dcc62af11a8385e8c0fc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8045d905a5ca57437d8e6f71ffcb6df5"><td class="memItemLeft" align="right" valign="top"><a id="ga8045d905a5ca57437d8e6f71ffcb6df5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>NVIC_USER_IRQ_OFFSET</b>&#160;&#160;&#160;16</td></tr>
<tr class="separator:ga8045d905a5ca57437d8e6f71ffcb6df5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa6fa2b10f756385433e08522d9e4632f"><td class="memItemLeft" align="right" valign="top"><a id="gaa6fa2b10f756385433e08522d9e4632f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EXC_RETURN_HANDLER</b>&#160;&#160;&#160;(0xFFFFFFF1UL)     /* return to Handler mode, uses MSP after return                               */</td></tr>
<tr class="separator:gaa6fa2b10f756385433e08522d9e4632f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaea4703101b5e679f695e231f7ee72331"><td class="memItemLeft" align="right" valign="top"><a id="gaea4703101b5e679f695e231f7ee72331"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EXC_RETURN_THREAD_MSP</b>&#160;&#160;&#160;(0xFFFFFFF9UL)     /* return to Thread mode, uses MSP after return                                */</td></tr>
<tr class="separator:gaea4703101b5e679f695e231f7ee72331"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9998daf0fbdf31dbc8f81cd604b58175"><td class="memItemLeft" align="right" valign="top"><a id="ga9998daf0fbdf31dbc8f81cd604b58175"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>EXC_RETURN_THREAD_PSP</b>&#160;&#160;&#160;(0xFFFFFFFDUL)     /* return to Thread mode, uses PSP after return                                */</td></tr>
<tr class="separator:ga9998daf0fbdf31dbc8f81cd604b58175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga53c75b28823441c6153269f0ecbed878"><td class="memItemLeft" align="right" valign="top"><a id="ga53c75b28823441c6153269f0ecbed878"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_BIT_SHIFT</b>(IRQn)&#160;&#160;&#160;(  ((((uint32_t)(int32_t)(IRQn))         )      &amp;  0x03UL) * 8UL)</td></tr>
<tr class="separator:ga53c75b28823441c6153269f0ecbed878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaee4f7eb5d7e770ad51489dbceabb1755"><td class="memItemLeft" align="right" valign="top"><a id="gaee4f7eb5d7e770ad51489dbceabb1755"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_SHP_IDX</b>(IRQn)&#160;&#160;&#160;( (((((uint32_t)(int32_t)(IRQn)) &amp; 0x0FUL)-8UL) &gt;&gt;    2UL)      )</td></tr>
<tr class="separator:gaee4f7eb5d7e770ad51489dbceabb1755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga370ec4b1751a6a889d849747df3763a9"><td class="memItemLeft" align="right" valign="top"><a id="ga370ec4b1751a6a889d849747df3763a9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>_IP_IDX</b>(IRQn)&#160;&#160;&#160;(   (((uint32_t)(int32_t)(IRQn))                &gt;&gt;    2UL)      )</td></tr>
<tr class="separator:ga370ec4b1751a6a889d849747df3763a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6834dd8c9c59394f1b544b57665293a4"><td class="memItemLeft" align="right" valign="top"><a id="ga6834dd8c9c59394f1b544b57665293a4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>__NVIC_SetPriorityGrouping</b>(X)&#160;&#160;&#160;(void)(X)</td></tr>
<tr class="separator:ga6834dd8c9c59394f1b544b57665293a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab2072fe50f6d7cd208f6768919f59fae"><td class="memItemLeft" align="right" valign="top"><a id="gab2072fe50f6d7cd208f6768919f59fae"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>__NVIC_GetPriorityGrouping</b>()&#160;&#160;&#160;(0U)</td></tr>
<tr class="separator:gab2072fe50f6d7cd208f6768919f59fae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga71227e1376cde11eda03fcb62f1b33ea"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga71227e1376cde11eda03fcb62f1b33ea">__NVIC_EnableIRQ</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:ga71227e1376cde11eda03fcb62f1b33ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable Interrupt  <a href="#ga71227e1376cde11eda03fcb62f1b33ea">更多...</a><br /></td></tr>
<tr class="separator:ga71227e1376cde11eda03fcb62f1b33ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaaeb5e7cc0eaad4e2817272e7bf742083"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gaaeb5e7cc0eaad4e2817272e7bf742083">__NVIC_GetEnableIRQ</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:gaaeb5e7cc0eaad4e2817272e7bf742083"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Interrupt Enable status  <a href="#gaaeb5e7cc0eaad4e2817272e7bf742083">更多...</a><br /></td></tr>
<tr class="separator:gaaeb5e7cc0eaad4e2817272e7bf742083"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae016e4c1986312044ee768806537d52f"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gae016e4c1986312044ee768806537d52f">__NVIC_DisableIRQ</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:gae016e4c1986312044ee768806537d52f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable Interrupt  <a href="#gae016e4c1986312044ee768806537d52f">更多...</a><br /></td></tr>
<tr class="separator:gae016e4c1986312044ee768806537d52f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5a92ca5fa801ad7adb92be7257ab9694"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga5a92ca5fa801ad7adb92be7257ab9694">__NVIC_GetPendingIRQ</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:ga5a92ca5fa801ad7adb92be7257ab9694"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Pending Interrupt  <a href="#ga5a92ca5fa801ad7adb92be7257ab9694">更多...</a><br /></td></tr>
<tr class="separator:ga5a92ca5fa801ad7adb92be7257ab9694"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaabefdd4b790b9a7308929938c0c1e1ad"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gaabefdd4b790b9a7308929938c0c1e1ad">__NVIC_SetPendingIRQ</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:gaabefdd4b790b9a7308929938c0c1e1ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Pending Interrupt  <a href="#gaabefdd4b790b9a7308929938c0c1e1ad">更多...</a><br /></td></tr>
<tr class="separator:gaabefdd4b790b9a7308929938c0c1e1ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga562a86dbdf14827d0fee8fdafb04d191"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga562a86dbdf14827d0fee8fdafb04d191">__NVIC_ClearPendingIRQ</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:ga562a86dbdf14827d0fee8fdafb04d191"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear Pending Interrupt  <a href="#ga562a86dbdf14827d0fee8fdafb04d191">更多...</a><br /></td></tr>
<tr class="separator:ga562a86dbdf14827d0fee8fdafb04d191"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga505338e23563a9c074910fb14e7d45fd"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga505338e23563a9c074910fb14e7d45fd">__NVIC_SetPriority</a> (IRQn_Type IRQn, uint32_t priority)</td></tr>
<tr class="memdesc:ga505338e23563a9c074910fb14e7d45fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Interrupt Priority  <a href="#ga505338e23563a9c074910fb14e7d45fd">更多...</a><br /></td></tr>
<tr class="separator:ga505338e23563a9c074910fb14e7d45fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeb9dc99c8e7700668813144261b0bc73"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gaeb9dc99c8e7700668813144261b0bc73">__NVIC_GetPriority</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:gaeb9dc99c8e7700668813144261b0bc73"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Interrupt Priority  <a href="#gaeb9dc99c8e7700668813144261b0bc73">更多...</a><br /></td></tr>
<tr class="separator:gaeb9dc99c8e7700668813144261b0bc73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadb94ac5d892b376e4f3555ae0418ebac"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#gadb94ac5d892b376e4f3555ae0418ebac">NVIC_EncodePriority</a> (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority)</td></tr>
<tr class="memdesc:gadb94ac5d892b376e4f3555ae0418ebac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encode Priority  <a href="#gadb94ac5d892b376e4f3555ae0418ebac">更多...</a><br /></td></tr>
<tr class="separator:gadb94ac5d892b376e4f3555ae0418ebac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3387607fd8a1a32cccd77d2ac672dd96"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga3387607fd8a1a32cccd77d2ac672dd96">NVIC_DecodePriority</a> (uint32_t Priority, uint32_t PriorityGroup, uint32_t *const pPreemptPriority, uint32_t *const pSubPriority)</td></tr>
<tr class="memdesc:ga3387607fd8a1a32cccd77d2ac672dd96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decode Priority  <a href="#ga3387607fd8a1a32cccd77d2ac672dd96">更多...</a><br /></td></tr>
<tr class="separator:ga3387607fd8a1a32cccd77d2ac672dd96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0df355460bc1783d58f9d72ee4884208"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga0df355460bc1783d58f9d72ee4884208">__NVIC_SetVector</a> (IRQn_Type IRQn, uint32_t vector)</td></tr>
<tr class="memdesc:ga0df355460bc1783d58f9d72ee4884208"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Interrupt Vector  <a href="#ga0df355460bc1783d58f9d72ee4884208">更多...</a><br /></td></tr>
<tr class="separator:ga0df355460bc1783d58f9d72ee4884208"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga44b665d2afb708121d9b10c76ff00ee5"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga44b665d2afb708121d9b10c76ff00ee5">__NVIC_GetVector</a> (IRQn_Type IRQn)</td></tr>
<tr class="memdesc:ga44b665d2afb708121d9b10c76ff00ee5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Interrupt Vector  <a href="#ga44b665d2afb708121d9b10c76ff00ee5">更多...</a><br /></td></tr>
<tr class="separator:ga44b665d2afb708121d9b10c76ff00ee5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0d9aa2d30fa54b41eb780c16e35b676c"><td class="memItemLeft" align="right" valign="top">__NO_RETURN __STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_m_s_i_s___core___n_v_i_c_functions.html#ga0d9aa2d30fa54b41eb780c16e35b676c">__NVIC_SystemReset</a> (void)</td></tr>
<tr class="memdesc:ga0d9aa2d30fa54b41eb780c16e35b676c"><td class="mdescLeft">&#160;</td><td class="mdescRight">System Reset  <a href="#ga0d9aa2d30fa54b41eb780c16e35b676c">更多...</a><br /></td></tr>
<tr class="separator:ga0d9aa2d30fa54b41eb780c16e35b676c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>Functions that manage interrupts and exceptions via the NVIC. </p>
<h2 class="groupheader">函数说明</h2>
<a id="ga562a86dbdf14827d0fee8fdafb04d191"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga562a86dbdf14827d0fee8fdafb04d191">&#9670;&nbsp;</a></span>__NVIC_ClearPendingIRQ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void __NVIC_ClearPendingIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear Pending Interrupt </p>
<p>Clears the pending bit of a device specific interrupt in the NVIC pending register. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Device specific interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>IRQn must not be negative. </dd></dl>

</div>
</div>
<a id="gae016e4c1986312044ee768806537d52f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae016e4c1986312044ee768806537d52f">&#9670;&nbsp;</a></span>__NVIC_DisableIRQ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void __NVIC_DisableIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disable Interrupt </p>
<p>Disables a device specific interrupt in the NVIC interrupt controller. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Device specific interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>IRQn must not be negative. </dd></dl>

</div>
</div>
<a id="ga71227e1376cde11eda03fcb62f1b33ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga71227e1376cde11eda03fcb62f1b33ea">&#9670;&nbsp;</a></span>__NVIC_EnableIRQ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void __NVIC_EnableIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enable Interrupt </p>
<p>Enables a device specific interrupt in the NVIC interrupt controller. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Device specific interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>IRQn must not be negative. </dd></dl>

</div>
</div>
<a id="gaaeb5e7cc0eaad4e2817272e7bf742083"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaaeb5e7cc0eaad4e2817272e7bf742083">&#9670;&nbsp;</a></span>__NVIC_GetEnableIRQ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t __NVIC_GetEnableIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Interrupt Enable status </p>
<p>Returns a device specific interrupt enable status from the NVIC interrupt controller. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Device specific interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0 Interrupt is not enabled. </dd>
<dd>
1 Interrupt is enabled. </dd></dl>
<dl class="section note"><dt>注解</dt><dd>IRQn must not be negative. </dd></dl>

</div>
</div>
<a id="ga5a92ca5fa801ad7adb92be7257ab9694"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5a92ca5fa801ad7adb92be7257ab9694">&#9670;&nbsp;</a></span>__NVIC_GetPendingIRQ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t __NVIC_GetPendingIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Pending Interrupt </p>
<p>Reads the NVIC pending register and returns the pending bit for the specified device specific interrupt. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Device specific interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>0 Interrupt status is not pending. </dd>
<dd>
1 Interrupt status is pending. </dd></dl>
<dl class="section note"><dt>注解</dt><dd>IRQn must not be negative. </dd></dl>

</div>
</div>
<a id="gaeb9dc99c8e7700668813144261b0bc73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaeb9dc99c8e7700668813144261b0bc73">&#9670;&nbsp;</a></span>__NVIC_GetPriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t __NVIC_GetPriority </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Interrupt Priority </p>
<p>Reads the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>Interrupt Priority. Value is aligned automatically to the implemented priority bits of the microcontroller. </dd></dl>

</div>
</div>
<a id="ga44b665d2afb708121d9b10c76ff00ee5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga44b665d2afb708121d9b10c76ff00ee5">&#9670;&nbsp;</a></span>__NVIC_GetVector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t __NVIC_GetVector </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Interrupt Vector </p>
<p>Reads an interrupt vector from interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>Address of interrupt handler function </dd></dl>

</div>
</div>
<a id="gaabefdd4b790b9a7308929938c0c1e1ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaabefdd4b790b9a7308929938c0c1e1ad">&#9670;&nbsp;</a></span>__NVIC_SetPendingIRQ()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void __NVIC_SetPendingIRQ </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Pending Interrupt </p>
<p>Sets the pending bit of a device specific interrupt in the NVIC pending register. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Device specific interrupt number. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>IRQn must not be negative. </dd></dl>

</div>
</div>
<a id="ga505338e23563a9c074910fb14e7d45fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga505338e23563a9c074910fb14e7d45fd">&#9670;&nbsp;</a></span>__NVIC_SetPriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void __NVIC_SetPriority </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>priority</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Interrupt Priority </p>
<p>Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">priority</td><td>Priority to set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>The priority cannot be set for every processor exception. </dd></dl>

</div>
</div>
<a id="ga0df355460bc1783d58f9d72ee4884208"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0df355460bc1783d58f9d72ee4884208">&#9670;&nbsp;</a></span>__NVIC_SetVector()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void __NVIC_SetVector </td>
          <td>(</td>
          <td class="paramtype">IRQn_Type&#160;</td>
          <td class="paramname"><em>IRQn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>vector</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Interrupt Vector </p>
<p>Sets an interrupt vector in SRAM based interrupt vector table. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. VTOR must been relocated to SRAM before. If VTOR is not present address 0 must be mapped to SRAM. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">IRQn</td><td>Interrupt number </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">vector</td><td>Address of interrupt handler function </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga0d9aa2d30fa54b41eb780c16e35b676c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0d9aa2d30fa54b41eb780c16e35b676c">&#9670;&nbsp;</a></span>__NVIC_SystemReset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__NO_RETURN __STATIC_INLINE void __NVIC_SystemReset </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>System Reset </p>
<p>Initiates a system reset request to reset the MCU. </p>

</div>
</div>
<a id="ga3387607fd8a1a32cccd77d2ac672dd96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3387607fd8a1a32cccd77d2ac672dd96">&#9670;&nbsp;</a></span>NVIC_DecodePriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void NVIC_DecodePriority </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>PriorityGroup</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *const&#160;</td>
          <td class="paramname"><em>pPreemptPriority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *const&#160;</td>
          <td class="paramname"><em>pSubPriority</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decode Priority </p>
<p>Decodes an interrupt priority value with a given priority group to preemptive priority value and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS) the smallest possible priority group is set. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">Priority</td><td>Priority value, which can be retrieved with the function NVIC_GetPriority(). </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">PriorityGroup</td><td>Used priority group. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">pPreemptPriority</td><td>Preemptive priority value (starting from 0). </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">pSubPriority</td><td>Subpriority value (starting from 0). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gadb94ac5d892b376e4f3555ae0418ebac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadb94ac5d892b376e4f3555ae0418ebac">&#9670;&nbsp;</a></span>NVIC_EncodePriority()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t NVIC_EncodePriority </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>PriorityGroup</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>PreemptPriority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>SubPriority</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Encode Priority </p>
<p>Encodes the priority for an interrupt with the given priority group, preemptive priority value, and subpriority value. In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">PriorityGroup</td><td>Used priority group. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">PreemptPriority</td><td>Preemptive priority value (starting from 0). </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">SubPriority</td><td>Subpriority value (starting from 0). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>Encoded priority. Value can be used in the function NVIC_SetPriority(). </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
